package view;

import javax.swing.JDialog;
import javax.swing.JLabel;

import manager.interfaces.IDialogMsg;

public class MyDialog extends JDialog implements IDialogMsg {

	private String msg;
	private JLabel context;

	public MyDialog() {
		
		setSize(100,100);		
	}

	@Override
	public void sendMsg(boolean isActivate, String msg) {
		
		
		if(isActivate) {
			this.setVisible(isActivate);
			this.msg = msg;
			
			context = new JLabel(this.msg);
			add(context);
		}
		
	}	
	
}
